package com.zwh.modbus.modbus4j;
import com.zwh.modbus.modbus4j.enums.StatusCode;

public class ResponseVo {
    private Integer code;
    private String msg;
    private Object data;

    public ResponseVo(Integer code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }
    public ResponseVo() {
    }
    public ResponseVo(StatusCode status, Object data) {
        this(status.getCode(), status.getMessage(), data);
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
